<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script src="./js/axios.js"></script>
    <script>
        axios.get('http://localhost:3000/adata').then((data) => {
            // 这里的data是一个对象 所有的属性都在data对象的data里面
            // data属性属于固定的值 用于获取后台的数据
            console.log(data)
            console.log(data.data)
        })


    </script>
</body>

</html>